<%
String status = "";
if(request.getSession().getAttribute("status") != null){
	status = (String)request.getSession().getAttribute("status");
}else if(!status.equals("ingelogd")){
	response.sendRedirect("../index.jsp?message=Log+eerst+in+om+verder+te+gaan");
}
String pagina = request.getParameter("locatie");
String eventID = request.getParameter("eventID");
//session.removeAttribute("status");

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">

<head>
<title>Incentro Event Inviting System</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="../style.css" />
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.ico" />
</head>

<body onload="initialize()" onunload="GUnload()">

	<div id="wrapper">
		<div id="header">
			<a href="../eOverzicht.jsp" id="logo"><img src="../img/logo.png" /></a>
		</div>
		
			<h3>Locatie toevoegen</h3>
		<div id="search-form">
			<a href="javascript:javascript:history.go(-1)"><input type="submit" value="Terug" class="terugButton" /></a>
			
		</div>
		<form id="eventForm" action="../LocatieToevoegen.do" method="get" >
		<div class="child2 uOpstellenArea1">				
				<span>
					<label for="adres">Adres</label> <input type="text" name="adres" id="inputAdres" placeholder="Adres" required></input>
				</span>
			
				<span> 
					<label for="plaats">Plaats</label> <input type="text" id="plaats" name="plaats" placeholder="Plaats" required />
				</span>
				
				<span> 
					<label for="postcode">Postcode</label> <input type="text" id="postcode" name="postcode" placeholder="Postcode"  required/>
				</span>
				
				<span> 
					<label for="website">Website</label> <input type="text" id="website" name="website" placeholder="Website" required />
				</span>
				 		<input type="hidden" name="locatie" value="<% out.print(pagina); %>"  />
						<input type="hidden" name="eventID" value="<% out.print(eventID); %>"  />

								<span>	
							
								</span>
			</div>
				<input type="submit" value="Voeg toe" id="form_submit1" />
		
		</form>		
		
		<a href="../event/evenementMaken.jsp"><button>Overslaan</button></a>
		
	</div>
</body>

</html>